<?php
class Usuario extends AppModel {

	var $name = 'Usuario';
	var $useTable = 'usuarios';
	var $validate = array(
		'id' => VALID_NOT_EMPTY,
		'email' => VALID_EMAIL,
		'password' => VALID_NOT_EMPTY,
		'tipo' => VALID_NOT_EMPTY,
	);

	var $hasAndBelongsToMany = array(
		'Permiso' => array('className'    => 'Permiso',
                    'joinTable'    => 'permisos_usuarios',
                    'foreignKey'   => 'usuario_id',
                    'associationForeignKey'=> 'permiso_id',
                    'conditions'   => '',
                    'order'        => '',
					'limit'        => '',
                    'unique'       => true,
                    'finderQuery'  => '',
                    'deleteQuery'  => '',) ,
    );
}
?>